/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author aptech
 */
@ManagedBean
@RequestScoped
public class Gender implements Serializable{

    boolean value;
    String name;

    public Gender(boolean value, String name) {
        this.value = value;
        this.name = name;
    }

    public Gender() {
    }

    public boolean isValue() {
        return value;
    }

    public void setValue(boolean value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Gender> getAllGender() {
        List<Gender> listS = new ArrayList<Gender>();
        listS.add(new Gender(true, "Male"));
        listS.add(new Gender(false, "Female"));
        return listS;
    }
}
